from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    (r'^$', 'django.views.generic.simple.redirect_to', {'url':'/lang/test/'}),
    (r'^lang/', include('flags.urls')),
    # static files
    #   FLAGS_URL = '/flags/'
    (r'^flags/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    # comment line above if using
    #   FLAGS_URL = 'http://djangodev.free.fr/flags/'
)
